package com.example.gateway.designPattern.builder;

import com.example.gateway.designPattern.builder.Computer;

/**
 * @ClassName: ComputerBuilder
 * @Description:
 * @Author: YourName
 * @Date: 2024/12/30
 */
//抽象生成器(Bulider): 给出一个抽象接口，以规范产品对象的各个组成成分的建造。这个接口规定要实现复杂对象的哪些部分的创建，并不涉及具体的对象部件的创建。
public abstract class ComputerBuilder {

    protected com.example.gateway.designPattern.builder.Computer computer;

    public com.example.gateway.designPattern.builder.Computer getComputer() {
        return computer;
    }

    public void buildComputer() {
        computer = new Computer();
        System.out.println("生成了一台电脑！！！");
    }
    public abstract void buildMaster();
    public abstract void buildScreen();
    public abstract void buildKeyboard();
    public abstract void buildMouse();
    public abstract void buildAudio();
}